import reqGlobal from "@/api/reqGlobal";

/**
 * 测试nodejs 的mock接口
 * /goods/list
 */
export function testMockApi() {
    return reqGlobal.get('/goods/list');
}


export function getCaptcha() {
    return reqGlobal.get('/lte/captcha');
}

//登录接口
export function loginApi(loginJson) {
    return reqGlobal.post('/xjt/login', loginJson);
}

//获取用户的前端菜单按钮权限
export function getPrem() {
    return reqGlobal.get('/xjt/getPrem');
}

export function logout() {
    return reqGlobal.post('/xjt/exit');
}
